<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content=""><!--SEO关键字-->
<meta name="description" content=""><!--SEO描述-->
<link rel ="" href=""><!--选项卡图标-->
<title></title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="common.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/script.js"></script>
<script src="js/responsiveslides.min.js"></script>
<!--[if ie 6]>
<link rel="stylesheet" href="css/ie6.css">
<script type="text/javascript" src="js/DD_belatedPNG.js" ></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');/*在需要png透明的元素里面加上.png样式即可（class="png"）*/
</script>
<![endif]-->
</head>

<body class="bg_img">
	<div class="header h100 w960 bc"><?php head();?></div>

	<div class="w960 bc">
		<div class="register_wraps w960 common_bg">
			<div class="cart_from_wrap oh">
				<p class="step f14 tc dib fl" id="step_hover"><span class="f20 fb">1</span>购物车结算</p>
				<p class="step f14 tc dib fl"><span class="f20 fb">2</span>填写订单信息</p>
				<p class="step f14 tc dib fl"><span class="f20 fb">3</span>支付/确定订单</p>
			</div>
			<div class="cart_from_wrap oh mt20">
				<table class="goods_cart_from">
					<tr>
						<th>商品名称</th>
						<th>价格</th>
						<th>数量</th>
						<th>小计</th>
						<th>操作</th>
					</tr>
					<?php
					for($n=0;$n< count($cart);$n++){
						$price = $cart[$n]['product_num']*$cart[$n]['info']['price'];
					?>
					<tr>
						<td><p class="goods_choice"><a href="#"><img src="<?php echo $cart[$n]['info']['path']?>" width="70" height="80" alt="" class="fl"></a><a href="/goods/<?php echo $cart[$n]['info']['p_id']?>" class="fl no_url c999"><?php echo $cart[$n]['info']['name']?></a></p></td>
						<td>¥<span class="good_price"><?php echo $cart[$n]['info']['price']?></span></td>
						<td>
							<select name="goods_numSelect" id="cart_numSelect">
								<?php
								for($m=1;$m<11;$m++){
									if($m == $cart[$n]['product_num'])echo "<option value='$m' selected='selected'>$m</option>";
									else echo "<option value='$m'>$m</option>";
								}
								?>
							</select>
						</td>
						<td>¥<span class="total"><?php echo $price;?></span></td>
						<input type="hidden" class="cart_number" value="<?php echo $cart[$n]['id'];?>">
						<td class="error_text shou"><a href="/cart1/<?php echo $cart[$n]['id']?>" onclick="return delOk();">删除</a></td>
					</tr>
					<?php $pp+=$price;} ?>
					<tr>
						<td colspan="5" class="settle">
							<p class="fr fb f16 c777">商品金额合计：¥<span class="chot cart_money"><?php echo $pp;?></span></p><br><br><br>
							<p><form action="/cart2" method="POST"><input type="submit" class="submit fr fb" value="去结算"></form><input type="submit" class="submit2 fr fb" style="margin-right:20px;" value="继续购买"></p>
						</td>
					</tr>
				</table>
			</div>
		</div><!-- register_wraps end -->
		<div class="register_shadow w960 png"></div>
	</div>

	<a href="#"><div class="guarantee w960 bc mt20 png"></div></a><!-- guarantee end -->

	

	<div class="footer w960 bc">
		<div class="footerinfo fl mt20 pb20">
			<p class="f12">友情链接： <a href="#">小米科技 </a>&nbsp;&nbsp;<a href="#">魅族科技</a>&nbsp;&nbsp;<a href="#">360手机</a>&nbsp;&nbsp;<a href="#">到会网</a></p>
			<p class="f12">友情链接： <a href="#">关于我们</a>&nbsp;&nbsp;<a href="#">工作机会</a>&nbsp;&nbsp;<a href="#">联系我们</a></p>
			<p class="f12">Copyright © 2012 Speed Co., Ltd. All rights reserved. 经营许可证编号： 粤B2-20050367</p>
		</div>
		<div class="phone400 fl png"></div>
		<div class="service fl pf fixed-bottom"><a href="#" class="dib png"></a></div>
	</div>
</body>
</html>